package com.muyu.day3zy.domain;

import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * @ClassName TypeInfo
 * @Description 描述
 * @Author ShiYu.Cui
 * @Date 2024/3/24 9:19
 */
public class TypeInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 分类id */
    @Excel(name = "分类id", cellType = Excel.ColumnType.NUMERIC)
    private Long id;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String typeName;

    /** 上级分类 */
    @Excel(name = "上级分类")
    private Integer parentId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("typeName", getTypeName())
                .append("parentId", getParentId())
                .toString();
    }
}
